//
//  GuideView.h
//  ZaloChatPlugin
//
//  Created by HuyNC on 10/25/13.
//  Copyright (c) 2013 NCH. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol GuideViewDelegate;

@interface GuideView : UIView

@property (nonatomic, copy) NSString* userDefaultKey;

// default is YES
@property (nonatomic) bool isShowIndicator;

// default is NO
@property (nonatomic) bool isAutoScroll;
@property (nonatomic) float autoScrollDuration;

@property (nonatomic) float transparent;

@property (nonatomic) id<GuideViewDelegate> delegate;

- (id)initWithFrame:(CGRect)frame userDefaultKey:(NSString*)userDefaultKey;
- (void)addPageView:(UIView*)pageView;
- (void)removePageView:(UIView*)pageView;
- (bool)isShowedBefore;
- (bool)changeNextView;

// use this function to add self to super view, and set it is showed
- (void)addToSuperViewIfNeed:(UIView*)superView;
- (void)addToSuperView:(UIView*)superView;

+ (bool)isUserDefaultKeyUsed:(NSString*)userDefaultKey;

@end


@protocol GuideViewDelegate <NSObject>

@optional
- (void)GuideViewDidDismiss:(GuideView*)GuideView;

@end
